import request from '@/utils/request'

// 获取头部分类数据
export const reqGetCategory = () => {
  return request('/home/category/head')
}

// hover头部购物车图标，展示购物车数据列表
export const reqGetCartList = () => {
  return request('/member/cart')
}

// 删除单个商品
export const reqDelCart = (ids) => {
  // return request.delete('/member/cart', { ids })
  return request({
    method: 'delete',
    url: '/member/cart',
    data: { ids }
  })
}
